﻿using HamcoWcs.Entitys.Bases;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;


namespace HamcoWcs.Entitys.PlayBacks
{
    public class PlayBack : BaseEntity , IEntityTypeConfiguration<PlayBack>
    {
        public DateTime PlayDate { get; set; }
        public string Module { get; set; }
        public string Content { get; set; }

        public void Configure(EntityTypeBuilder<PlayBack> builder)
        {
            builder.HasComment("回放数据");
            builder.ToTable("playback_log");
            builder.Property(x => x.PlayDate).HasComment("发生时间");
            builder.Property(x => x.Module).HasMaxLength(45).HasComment("模块");
            builder.Property(x => x.Content).HasColumnType("longtext").HasComment("当前时段数据");
        }
    }
}
